package com.company.service.impl.graph;

import com.company.service.Graph;

/**
 * 圆形
 */
public class Circular extends Graph {
    double a;
    public void getPerimeter(){
        System.out.println("圆形周长为：" + Math.PI * a);
    }

    public Circular(int diameter) {
        this.a = diameter;
    }
}
